package com.hrt.web.addressBook.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.AddressBook;
import com.hrt.web.addressBook.dao.AddressBookDao;
@Repository
public class AddressBookDaoImpl extends BaseDaoImpl<AddressBook> implements AddressBookDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<AddressBook> getAddListById(Long memberId) {
		String hql = "select book from AddressBook book where book.memberId='"+memberId+"' and book.isdelete=0";
		return getHibernateTemplate().find(hql);
	}

}
